﻿
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
	<meta charset="utf-8" />
	  <meta name="csrf-token" content="{{ csrf_token() }}">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="author" content="Design:XuYiMei; Web Layout:WangXin;" />
    <link rel="Shortcut Icon" href="http://www.dota2.com.cn/favicon.ico" />
    <link rel="bookmark" href="http://www.dota2.com.cn/favicon.ico" />
    <meta name="baidu-site-verification" content="dQadzXjaRI" />
	<meta name="description" content="《DOTA2》充值中心 - 完美世界" />
    <meta name="keywords" content="完美世界,充值中心,充值,点卡,购卡" />
    <title>《DOTA2》充值中心 - 完美世界</title>
	






	<link href="/public/home/Css/pay1601.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bg" id="payCneter">
	
<div class="header">
	<div class="rel960">
		<a class="logo" href="{{url('/home')}}" target="_blank"><img src="/public/home/Picture/logo.png" alt="《dota2》官方网站" /></a>
		<div class="rightArea">

			
			
			
		</div>
	</div>
</div>










    
    <div class="pay_container clearfix">
    	<div id="page-wrapper">
        
    
        </div>

		






<div class="leftArea">
	<h3 class="tit">充值中心</h3>
	<ul class="payLeftBar">
		<li><a href="http://pay.wanmei.com/new/dota2/index.do" class="payBar1 on"><i></i><span>我要充值</span><em></em></a></li>
	</ul>
</div>

        <div class="rightArea">
        	<div class="account_box">
            <form action="{{ url('/home/pay/insert') }}" method="post">
            	<div class="account_item" style="display:block;">
                	<span class="account_t">完美通行证账号：</span>
					<input type="text" class="inp_long" name="username" id="username" placeholder="完美通行证账号" >
                    <div style="display:none;" id="tip_username" class="msg">您输入的账号不存在</div>
                </div>
                
                <div class="account_item" id="account_mode" style="display:block;">
                	<span class="account_t">充值方式：</span>
					<span class="dBox">
                    	<em tip="1" id="pay3">完美一卡通</em>
                        
                    </span>
                </div>
                
                
                <!--完美一卡通充值、声讯电话、手机IVR、短信充值-->
                <div id="num_card" contype="con_info2">
                	<div class="account_item account_money_msg">100刀币=1元；充值数量必须为100的倍数，最上限5000000。</div>
                    <div class="account_item">
                        <span class="account_t">卡号：</span>
                        <input type="text" class="inp_long" name="number" id="cardnumber" value="" maxlength="15">&nbsp;&nbsp;
                        <div style="display:none;" id="tip_cardnumber" class="msg">您输入的卡号不存在</div>
                    </div>
                    <div class="account_item" id='b' style="display:none;">
                      <p style="margin-left:33px;" id="me" class="account_t">面额</p>
                    </div>

                    <div class="account_item">
                        <span class="account_t">密码：</span>
                        <input type="text" class="inp_long" name="password" id="cardpassword" value="" maxlength="15">
                        <div style="display:none;" id="tip_cardpassword" class="msg">您输入的密码错误</div>
                    </div>
                    
                    
                    {{csrf_field()}} 
                    <button class="recharge" id="pay_btn" href="#">立即充值</button>

                   

                                    	<!-- 
                    <span class="reg_wrong">立即充值</span>
                     -->
                </div>
               
            </div>
        </form>
            <!--温馨提示-->
        	<div class="wenxin">
            	<i></i><span class="tips">温馨提示</span><br>1. 您在充值成功后，此次充值金额可能会需要一段时间才会出现在您账号中，请您不要担心，这是正常现象。<br>2. 为减少诈骗以及盗刷等情况的发生，在DOTA2游戏里商城购买的物品，一周以内无法交易。
            </div>
        </div>
    </div>
    <div class="bottom"></div>
</div>
<script type="text/javascript" src="/public/home/Scripts/jquery-1.7.2.min.js"></script>

<div style="display:none" 
	id="niubidetankuang"
	error="{!! session('error') !!}"
	success="{!! session('success') !!}"
	>
</div>

<script type="text/javascript">
	$(function(){
		var error = $('#niubidetankuang').attr('error');
		var success = $('#niubidetankuang').attr('success');
		if(error != '')
			alert(error);
		if(success != '')
			alert(success);	
	})
	// alert( error);     

		
  //       );

</script>
<script type="text/javascript">
 $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
        });
 //
    $('input[name = "number"]').blur(function(){
        var v = $(this).val();
      
        //验证该邮箱是否已经注册
        var self = this;
       
        $.get("/home/pay/inserta",{num:v},function(data){
            if(data == 0){
              
            	$("#me").html("面额：&nbsp;&nbsp;500").css('display','block');
                $("#b").css('display','block');
                // alert(500);

            }
            if(data == 1){
            	alert(50);
            }
            if(data == 2){
            	alert(200);
            }
        });

    });
</script>



</body>
</html>